﻿<%@ Page Language="C#" MasterPageFile="~/Home.master" AutoEventWireup="true" CodeFile="ShowDepartments.aspx.cs" Inherits="KimSoft.UI.ShowDepartments" Title="Các loại sản phẩm" %>
<%@ MasterType VirtualPath="~/Home.master" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" Runat="Server">
    <div class="title">
        Sản phẩm</div>
    <div class="body">
   <p></p>
        Các sản phẩm chúng tôi cung cấp
   <p></p>
   <asp:DataList ID="dlstDepartments" EnableTheming="False" runat="server" 
      DataSourceID="objAllDepartments" DataKeyField="ID" Width="100%" 
            RepeatColumns="2">
      <ItemTemplate>
         <table cellpadding="6" style="width: 100%;">
            <tr>
               <td style="width: 1px;">
               <asp:HyperLink runat="server" ID="lnkDepImage" NavigateUrl='<%# "BrowseProducts.aspx?DepID=" + Eval("ID") %>' >
                  <asp:Image runat="server" ID="imgDepartment" BorderWidth="0px" ImageAlign="AbsMiddle"
                     AlternateText='<%# Eval("Title") %>' ImageUrl='<%# Eval("ImageUrl") %>' />
               </asp:HyperLink>
               <asp:HyperLink runat="server" ID="lblTitle" Text='<%# Eval("Title") %>' NavigateUrl='<%# "BrowseProducts.aspx?DepID=" + Eval("ID") %>' /><br />
               <asp:Label runat="server" ID="lblDescription" Text='<%# Eval("Description") %>' />               
               </td>
            </tr>
         </table>
      </ItemTemplate>
   </asp:DataList>
   
   <asp:ObjectDataSource ID="objAllDepartments" runat="server" SelectMethod="ListDepartments"
      TypeName="BLL.Store.Department">
   </asp:ObjectDataSource>
    </div>
    <div class="bottom"></div>   
</asp:Content>

